package org.jeecg.common.constant;

/**
 * @author yangqf
 * @date 2023/4/28 21:24
 */
public class PayConstants {


    /**
     *  "运费支付方式(1按运单结算2车队长结算3预付运费4承运商结算)"
     */
    public static class PAY_TYPE {
        public final static String BY_ORDER = "1";

        public final static String BY_CARRIER = "2";

        public final static String BY_PREPAY = "3";

        public final static String BY_CAPTAIN = "4";
    }

    /**
     * "预付运单结算状态(0待支付 1待审核  5申请支付 6支付完成  7支付失败  9确认支付)
     */
    public static class PREPAY_ORDER_STATUS   {

        public final static String PENDING_PAY = "0";

        public final static String PENDING_APPROVAL = "1";

        public final static String APPLY_PAY = "5";

        public final static String COMPLETE_APPROVAL = "4";
        public final static String COMPLETE_PAY = "6";

        public final static String PAY_FAIL = "7";

        public final static String CONFIRM_PAY = "9";

    }

    /**
     * 运单结算状态(
     * 0未对账
     * 1申请对账
     * 2对账完成
     * 3待审核
     * 4审核完成
     * 5申请支付
     * 6支付完成
     * 7支付失败
     * 8驳回)
     */
    public static class SHIPPING_PAY_STATUS {
        public final static String UNRECONCILED = "0";
        public final static String APPLY_RECONCILED = "1";
        public final static String COMPLETE_RECONCILED = "2";
        public final static String PENDING_APPROVAL = "3";
        public final static String COMPLETE_APPROVAL = "4";
        public final static String APPLY_PAY = "5";
        public final static String COMPLETE_PAY = "6";
        public final static String FAIL_PAY = "7";
        public final static String REJECT="8";
    }

    /**
     *订单模式(1管理费模式2撮合模式3差价)
     */
    public static class ORDER_MODE {
        public final static String MANAGE_FEE = "1";

        public final static String MATCH = "2";

        public final static String DIFF_PRICE = "3";

        public final static String CUSTOMER_MODE = "4";
    }

    /**
     * 单据类型(1支付运费2提现3车队长代收)
     */
    public static class BILL_TYPE {
        public final static String PAY_FREIGHT = "1";

        public final static String CASH_OUT = "2";

        public final static String PAY_CARRIER = "3";
    }

    /**
     * // 1 货主支付公司 2 公司支付给司机 3 司机支付给车队长   8 流程完成
     *             //4司机自动提现银行卡
     */
    public static class BILL_PAY_STATUS {
        public final static String CUSTOMER_TO_COMPANY = "1";
        public final static String COMPANY_TO_DRIVER = "2";
        public final static String DRIVER_TO_CARRIER ="3";
        public final static String DRIVER_CASH_OUT="4";
        public final static String FLOW_END = "8";

    }

    /**
     * 银行支付状态码
     */
    public static class BANK_PAY_SOUR{
        public final static String SUCCESS="4";
        public final static String FAIL = "5";
        public final static String PROCESSING = "6";
    }

    /**
     * 支付源类型 1账户余额 2平台垫付 3经纪人垫付 4账期
     */

    public static class PAY_SOURCE {
        public final static String ACCOUNT_PAY = "1";
        public final static String PLATFORM_PAY = "2";
        public final static String AGENT_PAY = "3";
        public final static String PERIOD_PAY = "4";
    }

}
